﻿<h3 class="important-tittle">Dynamic Visibility</h3>

<p>
    Use the <i class="text-muted">Visibility</i> property to hide/show any series, notice invisible
    series are not evaluated, so hiding them will reduce computing time.
</p>

<div class="text-center">
    <img src="/App/Examples/v1/Dynamic Visibility/Images/dynmic.gif"/>
</div>

<div class="doc-alert">
    To keep this example always up to date it is directly pulled from the Github repository, the
    repo for simplicity uses the <i>UserControl</i> class to wrap every example, but you can use any
    container for your plots.
</div>

<h4>Code Behind</h4>

<pre class="prettyprint" url="https://raw.githubusercontent.com/beto-rodriguez/Live-Charts/master/Examples/Wpf/CartesianChart/DynamicVisibility/DynamicVisibilityExample.xaml.cs"></pre>

<h4>XAML</h4>

<pre class="prettyprint" url="https://raw.githubusercontent.com/beto-rodriguez/Live-Charts/master/Examples/Wpf/CartesianChart/DynamicVisibility/DynamicVisibilityExample.xaml"></pre>